package com.graphql.demo.resolver;

import com.graphql.demo.query.User;
import graphql.kickstart.tools.GraphQLQueryResolver;

import java.io.IOException;
import java.util.List;

public class MetaDataQuery implements GraphQLQueryResolver {

    public User getUserById(final String duration) throws IOException {
        System.out.println(duration);
        User user = new User();
        user.setId(duration);
        user.setName("张飞");
        user.setEmail("1399083814@qq.com");
        return user;
    }
}
